package com.jiepu.daily.corejava.advanceed.part7io;


import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/8/4  11:09
 */
public class FileDemo1 {
	public static void main(String[] args) {
		File file1 = new File("com/jiepu/daily/corejava/advanceed/part7io/xinjie.txt");
		System.out.println(file1);

		File file2 = new File("", "");

		URI uri;
		try {
			uri = new URI("/com/jiepu/daily/advanceed/part7_io/xinjie");
			File file3= new File(uri);
			System.out.println(file3.exists());
		} catch (URISyntaxException e) {
			e.printStackTrace();
		}


	}
}
